package cn.edu.scau.cmi.wuzhenxin.client;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class AdapterClient extends Application{
	public static void main(String[] args) {
		launch(args);
	}
	
	public void start(Stage stage) {
		try {
            Parent root = FXMLLoader.load(getClass().getResource("adapter.fxml"));
            Scene scene = new Scene(root,470,366);
            stage.setScene(scene);
            stage.setResizable(false);
            stage.setTitle("适配器模式");
            stage.show();
        } catch(Exception e) {
            e.printStackTrace();
        }
	}
	public void openNewView() {//用于综合性实验开启界面
		Stage stage = new Stage();
		try {
			Parent root = FXMLLoader.load(getClass().getResource("adapter.fxml"));
			stage.setScene(new Scene(root));
			stage.setTitle("实验4：适配器模式");
			stage.show();
		} catch(Exception e) {
			e.printStackTrace();
		}
	}
}
